<?php
declare(strict_types=1);

return json_decode(<<<'JSON'
[
  {
    "type": "input",
    "field": "mchid",
    "title": "mchid",
    "info": "商户号",
    "$required": true,
    "_fc_id": "id_Fxo2md1dy5fjacc",
    "name": "ref_Favmmd1dy5fjadc",
    "display": true,
    "hidden": false,
    "_fc_drag_tag": "input"
  },
  {
    "type": "input",
    "field": "appid",
    "title": "appid",
    "info": "开发者ID",
    "$required": false,
    "display": true,
    "hidden": false,
    "_fc_drag_tag": "input"
  },
  {
    "type": "upload",
    "field": "apiclient_cert",
    "title": "apiclient_cert",
    "info": "商户API证书",
    "$required": false,
    "props": {
      "action": "{{API_BASE_URL}}/admin/filesystem/file",
      "name":"file",
      "headers": {
        "Authorization": "Bearer {{API_TOKEN}}"
      },
      "onSuccess": "$FNX:const res = $inject.args[0];\nconsole.log(res);if(res.code!=200 &&res.code!=0){alert(res.msg);return;}\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
      "limit": 1
    },
    "display": true,
    "hidden": false,
    "_fc_drag_tag": "upload"
  },
  {
    "type": "upload",
    "field": "apiclient_key",
    "title": "apiclient_key",
    "info": "商户API私钥",
    "$required": false,
    "props": {
      "action": "{{API_BASE_URL}}/admin/filesystem/file",
      "name":"file",
      "headers": {
        "Authorization": "Bearer {{API_TOKEN}}"
      },
      "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
      "limit": 1
    },
    "display": true,
    "hidden": false,
    "_fc_drag_tag": "upload"
  },
  {
    "type": "input",
    "field": "serial_no",
    "title": "serial_no",
    "info": "商户API证书序列号",
    "$required": false,
    "_fc_id": "id_Fho8md1e31edalc",
    "name": "ref_F343md1e31edamc",
    "display": true,
    "hidden": false,
    "_fc_drag_tag": "input"
  },
  {
    "type": "upload",
    "field": "public_key",
    "title": "public_key",
    "info": "微信支付公钥",
    "$required": false,
    "props": {
      "action": "{{API_BASE_URL}}/admin/filesystem/file",
      "name":"file",
      "headers": {
        "Authorization": "Bearer {{API_TOKEN}}"
      },
      "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
      "limit": 1
    },
    "_fc_id": "id_Finbmd1e8rmmarc",
    "name": "ref_Fb4jmd1e8rmmasc",
    "display": true,
    "hidden": false,
    "_fc_drag_tag": "upload"
  },
  {
    "type": "input",
    "field": "public_key_id",
    "title": "public_key_id",
    "info": "微信支付公钥id",
    "$required": false,
    "_fc_id": "id_F8prmd1e9yx9auc",
    "name": "ref_Fmmwmd1e9yx9avc",
    "display": true,
    "hidden": false,
    "_fc_drag_tag": "input"
  },
  {
    "type": "input",
    "field": "api_v3_key",
    "title": "api_v3_key",
    "info": "APIv3密钥",
    "$required": false,
    "_fc_id": "id_Floymd1ech8faxc",
    "name": "ref_Fdp2md1ech8fayc",
    "display": true,
    "hidden": false,
    "_fc_drag_tag": "input"
  },
  {
    "type": "input",
    "field": "platform_no",
    "title": "platform_no",
    "info": "平台证书序列号",
    "$required": false,
    "_fc_id": "id_Floymd1ech8faxc",
    "name": "ref_Fdp2md1ech8fayc",
    "display": true,
    "hidden": false,
    "_fc_drag_tag": "input"
  },
  {
    "type": "upload",
    "field": "platform_cert",
    "title": "平台证书",
    "info": "平台证书",
    "$required": false,
    "props": {
      "action": "{{API_BASE_URL}}/admin/filesystem/file",
      "name":"file",
      "headers": {
        "Authorization": "Bearer {{API_TOKEN}}"
      },
      "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
      "limit": 1
    }
  },
  {
    "type": "switch",
    "title": "启用沙箱环境",
    "field": "sandbox",
    "props": {
      "activeText": "是",
      "inactiveText": "否"
    },
    "_fc_id": "id_Fpxtmd1fz7stauc",
    "name": "ref_Fihqmd1fz7stavc",
    "_fc_drag_tag": "switch",
    "display": true,
    "hidden": false
  },
  {
    "type": "input",
    "title": "支付回调地址",
    "field": "notify_url",
    "props": {
      "placeholder": "请输入支付结果通知回调地址"
    },
    "$required": true,
    "_fc_id": "id_F0j5md1fz7stawc",
    "name": "ref_Ffipmd1fz7staxc",
    "_fc_drag_tag": "input",
    "display": true,
    "hidden": false
  },
  {
    "type": "input",
    "title": "退款回调地址",
    "field": "refund_notify_url",
    "props": {
      "placeholder": "请输入退款结果通知回调地址"
    },
    "_fc_id": "id_Fcmkmd1fz7stayc",
    "name": "ref_Fct5md1fz7stazc",
    "_fc_drag_tag": "input",
    "display": true,
    "hidden": false
  }
]
JSON, true);
